package com.easychat.entity.constants;

/**
 * @Author Dongdong
 * @注释   Redis中的常量类
 */

public class RedisConstants {
    public static final String REDIS_KEY_CHECK_CODE ="easychat:check_code:";
    //60 TIme
    public static final Integer REDIS_EXPIRE_1MIN =60;
    // one day time
    public static final Integer REDIS_EXPIRE_1DAY=REDIS_EXPIRE_1MIN*60*24;
    //心跳 key
    public static final String REDIS_KEY_WS_HEART_BEAT="easychat:ws:user:heart";
    // 心跳过期时间
    public static final Integer REDIS_KEY_EXPIRE_HEART_BEAT= 6;

    public static final String REDIS_KEY_WS_TOKEN="easychat:ws:token:";
    public static final String REDIS_KEY_WS_TOKEN_USERID="easychat:ws:token:userid:";

    public static final String REDIS_KEY_SYS_SETTING="easychat:syssetting";

    public static final String REDIS_KEY_USER_CONTACT="easychat:ws:user:contact:";

    // ws端口key
    public static final String REDIS_KEY_WS_PORTS="easychat:webSocketPort";
}
